package com.ujs.service;

import com.ujs.pojo.Role;
import com.ujs.pojo.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserInfoService extends UserDetailsService {

    List<UserInfo> findAll();

    void save(UserInfo userInfo);

    UserInfo findById(String userId);

    List<Role> findOtherRoles(String userId);

    void addRoleToUser(String userId, String[] roleIds);

}
